/*
 * adc.h
 *
 * ADC driver.
 *
 * Copyright (C) 2024 Sinh Micro, Inc.
 * Subject to the GNU Public License, version 2.
 *
 * Author: lixiang<lixiang@sinhmicro.com>
 * 
 * Encoding format: GB2312
 * Version: v1.2.2
 * Date: 2024-11-05
 */

#ifndef _ADC_H_
#define _ADC_H_

#include "hal-config.h"
#include "types.h"
#include "adc/adc-ss805x.h"

uint16_t adc_compute(uint16_t compute_val);
uint16_t adc_get_value(uint8_t channel_num);
uint16_t adc_get_value_mv(uint8_t channel_num);
uint16_t adc_get_vbat(void);

#endif
